home *** CD-ROM | disk | FTP | other *** search
/ Aminet 38 / Aminet 38 (2000)(Schatztruhe)[!][Aug 2000].iso / Aminet / dev / c / BestRandom.readme < prev    next >
Encoding:
Text File  |  2000-07-01  |  2.5 KB  |  61 lines

  1. Short:    Best Random Number Generator (PPC+68k)
  2. Author:   George Masaglia, Arif Zaman, David LaSalle, Jim Butler
  3. Uploader: info@ar-kleinert.de
  4. Type:     dev/c
  5.  
  6.  *************************************************************************
  7.  
  8.  This random number generator originally appeared in "Toward a Universal
  9.  Random Number Generator" by George Marsaglia and Arif Zaman.
  10.  Florida State University Report: FSU-SCRI-87-50 (1987)
  11.  
  12.  It was later modified by F. James and published in "A Review of Pseudo-
  13.  random Number Generators"
  14.  
  15.  THIS IS THE BEST KNOWN RANDOM NUMBER GENERATOR AVAILABLE.
  16.        (However, a newly discovered technique can yield
  17.          a period of 10^600. But that is still in the development stage.)
  18.  
  19.  It passes ALL of the tests for random number generators and has a period
  20.    of 2^144, is completely portable (gives bit identical results on all
  21.    machines with at least 24-bit mantissas in the floating point
  22.    representation).
  23.  
  24.  The algorithm is a combination of a Fibonacci sequence (with lags of 97
  25.    and 33, and operation "subtraction plus one, modulo one") and an
  26.    "arithmetic sequence" (using subtraction).
  27.  ========================================================================
  28.  This C language version was written by Jim Butler, and was based on a
  29.  FORTRAN program posted by David LaSalle of Florida State University.
  30.  
  31.  *************************************************************************
  32.  
  33.  The Amiga 68k/PPC version comes with both, makefiles for 68k and PPC,
  34.  and test programs for both CPUs.
  35.  
  36.  If the random number generator is working properly, the random numbers
  37.  as printed by the test program(s):
  38.  
  39.            6533892.0  14220222.0  7275067.0
  40.            6172232.0  8354498.0   10633180.0
  41.  
  42.  --
  43.  ARK, 30/May/2000
  44.  
  45.  
  46. ============================= Archive contents =============================
  47.  
  48. Original  Packed Ratio    Date     Time    Name
  49. -------- ------- ----- --------- --------  -------------
  50.     1749     879 49.7% 30-May-00 15:18:44 +BestRandom.readme
  51.    13356    8681 35.0% 30-May-00 15:14:16 +random
  52.     3729    1846 50.4% 30-May-00 15:10:36 +RANDOM-C.DOC
  53.     4524    2063 54.3% 30-May-00 15:10:36 +RANDOM.C
  54.    29135   13810 52.5% 30-May-00 15:14:06 +random.elf
  55.      831     395 52.4% 30-May-00 15:14:16 +random.info
  56.      219     145 33.7% 30-May-00 15:12:24 +SCOPTIONS
  57.      181     103 43.0% 30-May-00 15:12:00 +smakefile
  58.      151      87 42.3% 30-May-00 15:13:50 +smakefile68k
  59. -------- ------- ----- --------- --------
  60.    53875   28009 48.0% 31-May-100 18:45:20   9 files
  61.